﻿<%@ Page Title="" MasterPageFile="~/BackOffice.master" Language="C#" AutoEventWireup="true" CodeBehind="CadastroContato.aspx.cs" Inherits="MakeIT.Deo.Apresentacao.CadastroContato" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>


<asp:Content ID="cMain" ContentPlaceHolderID="cphMain" runat="server">
    <div class="art-Block">
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="l"></div>
                <div class="r"></div>
                <div class="art-header-tag-icon">
                    <div class="t">Contatos recebidos</div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div class="art-BlockContent-tl"></div>
                <div class="art-BlockContent-tr"></div>
                <div class="art-BlockContent-bl"></div>
                <div class="art-BlockContent-br"></div>
                <div class="art-BlockContent-tc"></div>
                <div class="art-BlockContent-bc"></div>
                <div class="art-BlockContent-cl"></div>
                <div class="art-BlockContent-cr"></div>
                <div class="art-BlockContent-cc"></div>
                <div class="art-BlockContent-body">

    <%--asp:UpdatePanel ID="upnCliente" runat="server">
        <ContentTemplate --%>
            <asp:TabContainer ID="tabCliente" runat="server" ActiveTabIndex="1">
                <asp:TabPanel ID="tabPesquisa" runat="server" HeaderText="Pesquisa">
                    <ContentTemplate>
                        <div style="width: 98%;">
                            <table style="width: 100%;">
                                <tr>
                                    <td>
                                        C&oacute;digo
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtId" runat="server"></asp:TextBox>
                                        <asp:MaskedEditExtender ID="mskTxtId" runat="server" Mask="9999999" TargetControlID="txtId" PromptCharacter="" />
                                    </td>
                                    <td>
                                        Nome
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Email
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                        Assunto
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtAssunto" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Envio inicial
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtInicio" runat="server"></asp:TextBox>
                                        <asp:ImageButton ID="imgtxtInicio" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/Calendario.png" />
                                        <asp:CalendarExtender ID="txtInicio_CalendarExtender" runat="server" DaysModeTitleFormat="dd/MM/yyyy"
                                            Enabled="True" TargetControlID="txtInicio" BehaviorID="imgtxtInicio"
                                            PopupButtonID="imgtxtInicio" Format="dd/MM/yyyy" TodaysDateFormat="dd/MM/yyyy">
                                        </asp:CalendarExtender>
                                    </td>
                                    <td>
                                        Envio final
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFinal" runat="server"></asp:TextBox>
                                        <asp:ImageButton ID="imgtxtFinal" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/Calendario.png" />
                                        <asp:CalendarExtender ID="txtFinal_CalendarExtender" runat="server" DaysModeTitleFormat="dd/MM/yyyy"
                                            Enabled="True" TargetControlID="txtFinal" BehaviorID="imgtxtFinal"
                                            PopupButtonID="imgtxtFinal" Format="dd/MM/yyyy" TodaysDateFormat="dd/MM/yyyy">
                                        </asp:CalendarExtender>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td colspan="4">
                                        <asp:Button ID="btnPesquisa" runat="server" Text="Pesquisa" OnClick="btnPesquisa_Click"/>
                                        <hr />
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <div style="width:830px; overflow:scroll;">
                                            <asp:CheckBox ID="cbxTodosContatos" runat="server" AutoPostBack="True" 
                                                OnCheckedChanged="cbxTodosContatos_CheckedChanged" /> Todos<br />
                                            <asp:Button ID="btnExcluir" runat="server" Text="Excluir Marcados" OnClick="btnExcluir_Click"/>
                                            <asp:Button ID="btnExcel" runat="server" Text="Exportar Excel" OnClick="btnExcel_Click"/>

                                            <asp:GridView ID="GridViewContato" runat="server" AutoGenerateColumns="False"
                                                EmptyDataText="N&atilde;o foram encontrados registros para esta pesquisa!" 
                                                BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
                                                CellPadding="3" GridLines="Vertical" AllowPaging="false" AllowSorting="false">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <HeaderTemplate></HeaderTemplate>
                                                        <ItemTemplate><asp:CheckBox ID="cbxMark" runat="server" /></ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="IdContato" HeaderText="Id" />
                                                    <asp:BoundField DataField="Envio" HeaderText="Envio" />
                                                    <asp:BoundField DataField="Nome" HeaderText="Nome" />
                                                    <asp:BoundField DataField="Email" HeaderText="email" />
                                                    <asp:BoundField DataField="Telefone" HeaderText="Telefone" />
                                                    <asp:BoundField DataField="Regiao" HeaderText="Regiao" />
                                                    <asp:BoundField DataField="Assunto" HeaderText="Assunto" />
                                                    <asp:BoundField DataField="Mensagem" HeaderText="Mensagem" />
                                                </Columns>
                                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" Wrap="False" />
                                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                                                <AlternatingRowStyle BackColor="#DCDCDC" />
                                            </asp:GridView>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        <%--/ContentTemplate>
    </asp:UpdatePanel--%>
    
    

                </div>
            </div>
        </div>
    </div>
    
</asp:Content>




